







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <!--<div class="layui-input-inline">-->
                <!--<select name="investment_type" >-->
                    <!--<option value="" >理财类型</option>-->
                    <!--<option value="1" {notempty name="param['investment_type']"}{if condition="$param['investment_type'] eq 1"} selected="selected" {/if}{/notempty} >心血公式</option>-->
                    <!--<option value="2" {notempty name="param['investment_type']"}{if condition="$param['investment_type'] eq 2"} selected="selected" {/if}{/notempty} >赌王投资</option>-->
                <!--</select>-->
            <!--</div>-->
            <button class="layui-btn"  id="search"  url="{:url('game_coin_list')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <!--<button class="layui-btn" onclick="x_admin_show('添加用户','./member-add.html',600,400)"><i class="layui-icon"></i>添加</button>-->
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总金额：{$list.ke}</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">已分红：{$list.shan|default='0'}</span>
        <ob_link> <button class="layui-btn export" url="{:url('exportTradeList')}"> 导 出</button></ob_link>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <!--<th>-->
            <!--<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>-->
            <!--</th>-->
            <th>ID</th>
            <th>委托账号</th>
            <th>UID</th>
            <th>赌王名称</th>
            <th>委托产品</th>
            <th>金额</th>
            <!--<th>盈利百分比</th>-->
            <!--<th>已分红金额</th>-->
            <th>状态</th>
            <th>委托提交时间</th>
            <!--<th>退款手续费</th>-->
            <th>退款时间</th>

            <!--<th>红利详情</th>-->
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.username}</td>
            <td>{$vo.user_id}</td>
            <td>{$vo.king.name}</td>
            <td>{$vo.investment.name}</td>
            <td>{$vo.money}</td>
            <!--<td>{$vo.profit}</td>-->
            <td>{$vo.state_text}</td>
            <td>{$vo.create_time}</td>
            <!--<td>{$vo.poundage_number}</td>-->
            <td>{if condition="$vo.state eq 3 || $vo.state eq 4"}{$vo.update_time|date='Y-m-d H:i:s',###}{else/}------{/if}</td>

            <!--<td class="td-manage">-->

                <!--<ob_link><a title="红利详情"  href="{:url('get_bonus_list', array('king_id' => $vo['id']))}" >-->
                    <!--<i class="layui-icon">&#xe62d;</i>-->
                <!--</a></ob_link>-->



            <!--</td>-->

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>

